<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>GParamSpec</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="index.html" title="GObject Reference Manual">
<link rel="up" href="rn01.html" title="API Reference">
<link rel="prev" href="gobject-Varargs-Value-Collection.html" title="Varargs Value Collection">
<link rel="next" href="gobject-Signals.html" title="Signals">
<meta name="generator" content="GTK-Doc V1.9 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="preface" href="pr01.html" title="Introduction">
<link rel="part" href="pt01.html" title="Part&#160;I.&#160;Concepts">
<link rel="chapter" href="chapter-intro.html" title="Background">
<link rel="chapter" href="chapter-gtype.html" title="The GLib Dynamic Type System">
<link rel="chapter" href="chapter-gobject.html" title="The GObject base class">
<link rel="chapter" href="chapter-signal.html" title="The GObject messaging system">
<link rel="reference" href="rn01.html" title="API Reference">
<link rel="reference" href="rn02.html" title="Tools Reference">
<link rel="part" href="pt02.html" title="Part&#160;IV.&#160;Tutorial">
<link rel="chapter" href="howto-gobject.html" title="How to define and implement a new GObject">
<link rel="chapter" href="howto-interface.html" title="How to define and implement interfaces">
<link rel="chapter" href="howto-signals.html" title="How to create and use signals">
<link rel="part" href="pt03.html" title="Part&#160;V.&#160;Related Tools">
<link rel="chapter" href="tools-gob.html" title="GObject builder">
<link rel="chapter" href="tools-ginspector.html" title="Graphical inspection of GObjects">
<link rel="chapter" href="tools-refdb.html" title="Debugging reference count problems">
<link rel="chapter" href="tools-gtkdoc.html" title="Writing API docs">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
<link rel="index" href="ix08.html" title="Index of new symbols in 2.12">
<link rel="index" href="ix09.html" title="Index of new symbols in 2.14">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gobject-Varargs-Value-Collection.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="rn01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GObject Reference Manual</th>
<td><a accesskey="n" href="gobject-Signals.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2938263" class="shortcut">Top</a>
                  &#160;|&#160;
                  <a href="#id2940526" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="gobject-GParamSpec"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2938263"></a><span class="refentrytitle">GParamSpec</span>
</h2>
<p>GParamSpec &#8212; Metadata for parameter specifications</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">

#include &lt;glib-object.h&gt;


#define             <a class="link" href="gobject-GParamSpec.html#G-TYPE-IS-PARAM:CAPS">G_TYPE_IS_PARAM</a>                     (type)
#define             <a class="link" href="gobject-GParamSpec.html#G-PARAM-SPEC:CAPS">G_PARAM_SPEC</a>                        (pspec)
#define             <a class="link" href="gobject-GParamSpec.html#G-IS-PARAM-SPEC:CAPS">G_IS_PARAM_SPEC</a>                     (pspec)
#define             <a class="link" href="gobject-GParamSpec.html#G-PARAM-SPEC-CLASS:CAPS">G_PARAM_SPEC_CLASS</a>                  (pclass)
#define             <a class="link" href="gobject-GParamSpec.html#G-IS-PARAM-SPEC-CLASS:CAPS">G_IS_PARAM_SPEC_CLASS</a>               (pclass)
#define             <a class="link" href="gobject-GParamSpec.html#G-PARAM-SPEC-GET-CLASS:CAPS">G_PARAM_SPEC_GET_CLASS</a>              (pspec)
#define             <a class="link" href="gobject-GParamSpec.html#G-PARAM-SPEC-TYPE:CAPS">G_PARAM_SPEC_TYPE</a>                   (pspec)
#define             <a class="link" href="gobject-GParamSpec.html#G-PARAM-SPEC-TYPE-NAME:CAPS">G_PARAM_SPEC_TYPE_NAME</a>              (pspec)
#define             <a class="link" href="gobject-GParamSpec.html#G-PARAM-SPEC-VALUE-TYPE:CAPS">G_PARAM_SPEC_VALUE_TYPE</a>             (pspec)
                    <a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a>;
                    <a class="link" href="gobject-GParamSpec.html#GParamSpecClass">GParamSpecClass</a>;
enum                <a class="link" href="gobject-GParamSpec.html#GParamFlags">GParamFlags</a>;
#define             <a class="link" href="gobject-GParamSpec.html#G-PARAM-READWRITE:CAPS">G_PARAM_READWRITE</a>
#define             <a class="link" href="gobject-GParamSpec.html#G-PARAM-STATIC-STRINGS:CAPS">G_PARAM_STATIC_STRINGS</a>
#define             <a class="link" href="gobject-GParamSpec.html#G-PARAM-MASK:CAPS">G_PARAM_MASK</a>
#define             <a class="link" href="gobject-GParamSpec.html#G-PARAM-USER-SHIFT:CAPS">G_PARAM_USER_SHIFT</a>
<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a>*         <a class="link" href="gobject-GParamSpec.html#g-param-spec-ref">g_param_spec_ref</a>                    (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec);
void                <a class="link" href="gobject-GParamSpec.html#g-param-spec-unref">g_param_spec_unref</a>                  (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec);
void                <a class="link" href="gobject-GParamSpec.html#g-param-spec-sink">g_param_spec_sink</a>                   (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec);
<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a>*         <a class="link" href="gobject-GParamSpec.html#g-param-spec-ref-sink">g_param_spec_ref_sink</a>               (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec);
void                <a class="link" href="gobject-GParamSpec.html#g-param-value-set-default">g_param_value_set_default</a>           (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec,
                                                         <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *value);
<a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            <a class="link" href="gobject-GParamSpec.html#g-param-value-defaults">g_param_value_defaults</a>              (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec,
                                                         <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *value);
<a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            <a class="link" href="gobject-GParamSpec.html#g-param-value-validate">g_param_value_validate</a>              (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec,
                                                         <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *value);
<a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            <a class="link" href="gobject-GParamSpec.html#g-param-value-convert">g_param_value_convert</a>               (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec,
                                                         const <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *src_value,
                                                         <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *dest_value,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> strict_validation);
<a
href="./../glib/glib/glib-Basic-Types.html#gint"
>gint</a>                <a class="link" href="gobject-GParamSpec.html#g-param-values-cmp">g_param_values_cmp</a>                  (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec,
                                                         const <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *value1,
                                                         const <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *value2);
const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a>*        <a class="link" href="gobject-GParamSpec.html#g-param-spec-get-name">g_param_spec_get_name</a>               (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec);
const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a>*        <a class="link" href="gobject-GParamSpec.html#g-param-spec-get-nick">g_param_spec_get_nick</a>               (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec);
const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a>*        <a class="link" href="gobject-GParamSpec.html#g-param-spec-get-blurb">g_param_spec_get_blurb</a>              (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec);
<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>            <a class="link" href="gobject-GParamSpec.html#g-param-spec-get-qdata">g_param_spec_get_qdata</a>              (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> quark);
void                <a class="link" href="gobject-GParamSpec.html#g-param-spec-set-qdata">g_param_spec_set_qdata</a>              (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> quark,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);
void                <a class="link" href="gobject-GParamSpec.html#g-param-spec-set-qdata-full">g_param_spec_set_qdata_full</a>         (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> quark,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data,
                                                         <a
href="./../glib/glib/glib-Datasets.html#GDestroyNotify"
>GDestroyNotify</a> destroy);
<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>            <a class="link" href="gobject-GParamSpec.html#g-param-spec-steal-qdata">g_param_spec_steal_qdata</a>            (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> quark);
<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a>*         <a class="link" href="gobject-GParamSpec.html#g-param-spec-get-redirect-target">g_param_spec_get_redirect_target</a>    (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec);
<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>            <a class="link" href="gobject-GParamSpec.html#g-param-spec-internal">g_param_spec_internal</a>               (<a class="link" href="gobject-Type-Information.html#GType">GType</a> param_type,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *nick,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *blurb,
                                                         <a class="link" href="gobject-GParamSpec.html#GParamFlags">GParamFlags</a> flags);
                    <a class="link" href="gobject-GParamSpec.html#GParamSpecTypeInfo">GParamSpecTypeInfo</a>;
<a class="link" href="gobject-Type-Information.html#GType">GType</a>               <a class="link" href="gobject-GParamSpec.html#g-param-type-register-static">g_param_type_register_static</a>        (const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
                                                         const <a class="link" href="gobject-GParamSpec.html#GParamSpecTypeInfo">GParamSpecTypeInfo</a> *pspec_info);
                    <a class="link" href="gobject-GParamSpec.html#GParamSpecPool">GParamSpecPool</a>;
<a class="link" href="gobject-GParamSpec.html#GParamSpecPool">GParamSpecPool</a>*     <a class="link" href="gobject-GParamSpec.html#g-param-spec-pool-new">g_param_spec_pool_new</a>               (<a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> type_prefixing);
void                <a class="link" href="gobject-GParamSpec.html#g-param-spec-pool-insert">g_param_spec_pool_insert</a>            (<a class="link" href="gobject-GParamSpec.html#GParamSpecPool">GParamSpecPool</a> *pool,
                                                         <a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> owner_type);
void                <a class="link" href="gobject-GParamSpec.html#g-param-spec-pool-remove">g_param_spec_pool_remove</a>            (<a class="link" href="gobject-GParamSpec.html#GParamSpecPool">GParamSpecPool</a> *pool,
                                                         <a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec);
<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a>*         <a class="link" href="gobject-GParamSpec.html#g-param-spec-pool-lookup">g_param_spec_pool_lookup</a>            (<a class="link" href="gobject-GParamSpec.html#GParamSpecPool">GParamSpecPool</a> *pool,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *param_name,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> owner_type,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> walk_ancestors);
<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a>**        <a class="link" href="gobject-GParamSpec.html#g-param-spec-pool-list">g_param_spec_pool_list</a>              (<a class="link" href="gobject-GParamSpec.html#GParamSpecPool">GParamSpecPool</a> *pool,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> owner_type,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> *n_pspecs_p);
<a
href="./../glib/glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>*              <a class="link" href="gobject-GParamSpec.html#g-param-spec-pool-list-owned">g_param_spec_pool_list_owned</a>        (<a class="link" href="gobject-GParamSpec.html#GParamSpecPool">GParamSpecPool</a> *pool,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> owner_type);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2940526"></a><h2>Description</h2>
<p>
<a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> is an object structure that encapsulates the metadata
required to specify parameters, such as e.g. <a class="link" href="gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> properties.
</p>
<p><a name="canonical-parameter-name"></a>
Parameter names need to start with a letter (a-z or A-Z). Subsequent
characters can be letters, numbers or a '-'.
All other characters are replaced by a '-' during construction.
The result of this replacement is called the canonical name of the
parameter.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2940570"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2940581"></a><h3>
<a name="G-TYPE-IS-PARAM:CAPS"></a>G_TYPE_IS_PARAM()</h3>
<a class="indexterm" name="id2940593"></a><pre class="programlisting">#define G_TYPE_IS_PARAM(type)		(G_TYPE_FUNDAMENTAL (type) == G_TYPE_PARAM)
</pre>
<p>
Returns whether <em class="parameter"><code>type</code></em> "is a" <a class="link" href="gobject-Type-Information.html#G-TYPE-PARAM:CAPS"><code class="literal">G_TYPE_PARAM</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-Type-Information.html#GType"><span class="type">GType</span></a> ID


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2940652"></a><h3>
<a name="G-PARAM-SPEC:CAPS"></a>G_PARAM_SPEC()</h3>
<a class="indexterm" name="id2940664"></a><pre class="programlisting">#define G_PARAM_SPEC(pspec)		(G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM, GParamSpec))
</pre>
<p>
Casts a derived <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> object (e.g. of type <a class="link" href="gobject-Standard-Parameter-and-Value-Types.html#GParamSpecInt"><span class="type">GParamSpecInt</span></a>) into
a <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> object.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>a valid <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2940732"></a><h3>
<a name="G-IS-PARAM-SPEC:CAPS"></a>G_IS_PARAM_SPEC()</h3>
<a class="indexterm" name="id2940745"></a><pre class="programlisting">#define G_IS_PARAM_SPEC(pspec)		(G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM))
</pre>
<p>
Checks whether <em class="parameter"><code>pspec</code></em> "is a" valid <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> structure of type <a class="link" href="gobject-Type-Information.html#G-TYPE-PARAM:CAPS"><code class="literal">G_TYPE_PARAM</code></a>
or derived.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2940813"></a><h3>
<a name="G-PARAM-SPEC-CLASS:CAPS"></a>G_PARAM_SPEC_CLASS()</h3>
<a class="indexterm" name="id2940826"></a><pre class="programlisting">#define G_PARAM_SPEC_CLASS(pclass)      (G_TYPE_CHECK_CLASS_CAST ((pclass), G_TYPE_PARAM, GParamSpecClass))
</pre>
<p>
Casts a derived <a class="link" href="gobject-GParamSpec.html#GParamSpecClass"><span class="type">GParamSpecClass</span></a> structure into a <a class="link" href="gobject-GParamSpec.html#GParamSpecClass"><span class="type">GParamSpecClass</span></a> structure.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>pclass</code></em>&#160;:</span></p></td>
<td>a valid <a class="link" href="gobject-GParamSpec.html#GParamSpecClass"><span class="type">GParamSpecClass</span></a>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2940886"></a><h3>
<a name="G-IS-PARAM-SPEC-CLASS:CAPS"></a>G_IS_PARAM_SPEC_CLASS()</h3>
<a class="indexterm" name="id2940899"></a><pre class="programlisting">#define G_IS_PARAM_SPEC_CLASS(pclass)   (G_TYPE_CHECK_CLASS_TYPE ((pclass), G_TYPE_PARAM))
</pre>
<p>
Checks whether <em class="parameter"><code>pclass</code></em> "is a" valid <a class="link" href="gobject-GParamSpec.html#GParamSpecClass"><span class="type">GParamSpecClass</span></a> structure of type 
<a class="link" href="gobject-Type-Information.html#G-TYPE-PARAM:CAPS"><code class="literal">G_TYPE_PARAM</code></a> or derived.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>pclass</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-GParamSpec.html#GParamSpecClass"><span class="type">GParamSpecClass</span></a>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2940968"></a><h3>
<a name="G-PARAM-SPEC-GET-CLASS:CAPS"></a>G_PARAM_SPEC_GET_CLASS()</h3>
<a class="indexterm" name="id2940981"></a><pre class="programlisting">#define G_PARAM_SPEC_GET_CLASS(pspec)	(G_TYPE_INSTANCE_GET_CLASS ((pspec), G_TYPE_PARAM, GParamSpecClass))
</pre>
<p>
Retrieves the <a class="link" href="gobject-GParamSpec.html#GParamSpecClass"><span class="type">GParamSpecClass</span></a> of a <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>a valid <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2941040"></a><h3>
<a name="G-PARAM-SPEC-TYPE:CAPS"></a>G_PARAM_SPEC_TYPE()</h3>
<a class="indexterm" name="id2941054"></a><pre class="programlisting">#define G_PARAM_SPEC_TYPE(pspec)	(G_TYPE_FROM_INSTANCE (pspec))
</pre>
<p>
Retrieves the <a class="link" href="gobject-Type-Information.html#GType"><span class="type">GType</span></a> of this <em class="parameter"><code>pspec</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>a valid <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2941110"></a><h3>
<a name="G-PARAM-SPEC-TYPE-NAME:CAPS"></a>G_PARAM_SPEC_TYPE_NAME()</h3>
<a class="indexterm" name="id2941122"></a><pre class="programlisting">#define G_PARAM_SPEC_TYPE_NAME(pspec)	(g_type_name (G_PARAM_SPEC_TYPE (pspec)))
</pre>
<p>
Retrieves the <a class="link" href="gobject-Type-Information.html#GType"><span class="type">GType</span></a> name of this <em class="parameter"><code>pspec</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>a valid <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2941179"></a><h3>
<a name="G-PARAM-SPEC-VALUE-TYPE:CAPS"></a>G_PARAM_SPEC_VALUE_TYPE()</h3>
<a class="indexterm" name="id2941193"></a><pre class="programlisting">#define	G_PARAM_SPEC_VALUE_TYPE(pspec)	(G_PARAM_SPEC (pspec)-&gt;value_type)
</pre>
<p>
Retrieves the <a class="link" href="gobject-Type-Information.html#GType"><span class="type">GType</span></a> to initialize a <a class="link" href="gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> for this parameter.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>a valid <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2941253"></a><h3>
<a name="GParamSpec"></a>GParamSpec</h3>
<a class="indexterm" name="id2941265"></a><pre class="programlisting">typedef struct {
  GTypeInstance  g_type_instance;

  gchar         *name;
  GParamFlags    flags;
  GType		 value_type;
  GType		 owner_type;	/* class or interface using this property */
} GParamSpec;
</pre>
<p>
All fields of the <span class="structname">GParamSpec</span> struct are private and
should not be used directly, except for the following:
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a class="link" href="gobject-Type-Information.html#GTypeInstance">GTypeInstance</a>&#160;<em class="structfield"><code>g_type_instance</code></em>;</span></p></td>
<td>private <a class="link" href="gobject-Type-Information.html#GTypeInstance"><span class="type">GTypeInstance</span></a> portion
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a>&#160;*<em class="structfield"><code>name</code></em>;</span></p></td>
<td>           name of this parameter
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="gobject-GParamSpec.html#GParamFlags">GParamFlags</a>&#160;<em class="structfield"><code>flags</code></em>;</span></p></td>
<td>          <a class="link" href="gobject-GParamSpec.html#GParamFlags"><span class="type">GParamFlags</span></a> flags for this parameter
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="gobject-Type-Information.html#GType">GType</a>&#160;<em class="structfield"><code>value_type</code></em>;</span></p></td>
<td>     the <a class="link" href="gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> type for this parameter
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="gobject-Type-Information.html#GType">GType</a>&#160;<em class="structfield"><code>owner_type</code></em>;</span></p></td>
<td>     <a class="link" href="gobject-Type-Information.html#GType"><span class="type">GType</span></a> type that uses (introduces) this paremeter

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2941429"></a><h3>
<a name="GParamSpecClass"></a>GParamSpecClass</h3>
<a class="indexterm" name="id2941441"></a><pre class="programlisting">typedef struct {
  GTypeClass      g_type_class;

  GType		  value_type;

  void	        (*finalize)		(GParamSpec   *pspec);

  /* GParam methods */
  void          (*value_set_default)    (GParamSpec   *pspec,
					 GValue       *value);
  gboolean      (*value_validate)       (GParamSpec   *pspec,
					 GValue       *value);
  gint          (*values_cmp)           (GParamSpec   *pspec,
					 const GValue *value1,
					 const GValue *value2);
} GParamSpecClass;
</pre>
<p>
The class structure for the <span class="structname">GParamSpec</span> type.
Normally, <span class="structname">GParamSpec</span> classes are filled by
<a class="link" href="gobject-GParamSpec.html#g-param-type-register-static"><code class="function">g_param_type_register_static()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a class="link" href="gobject-Type-Information.html#GTypeClass">GTypeClass</a>&#160;<em class="structfield"><code>g_type_class</code></em>;</span></p></td>
<td>the parent class
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="gobject-Type-Information.html#GType">GType</a>&#160;<em class="structfield"><code>value_type</code></em>;</span></p></td>
<td>the <a class="link" href="gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> type for this parameter
</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code>finalize</code></em>&#160;()</span></p></td>
<td>The instance finalization function (optional), should chain 
  up to the finalize method of the parent class.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code>value_set_default</code></em>&#160;()</span></p></td>
<td>Resets a <em class="parameter"><code>value</code></em> to the default value for this type
  (recommended, the default is <a class="link" href="gobject-Generic-values.html#g-value-reset"><code class="function">g_value_reset()</code></a>), see 
  <a class="link" href="gobject-GParamSpec.html#g-param-value-set-default"><code class="function">g_param_value_set_default()</code></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code>value_validate</code></em>&#160;()</span></p></td>
<td>Ensures that the contents of <em class="parameter"><code>value</code></em> comply with the 
  specifications set out by this type (optional), see 
  <code class="function">g_param_value_set_validate()</code>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code>values_cmp</code></em>&#160;()</span></p></td>
<td>Compares <em class="parameter"><code>value1</code></em> with <em class="parameter"><code>value2</code></em> according to this type
  (recommended, the default is <code class="function">memcmp()</code>), see <a class="link" href="gobject-GParamSpec.html#g-param-values-cmp"><code class="function">g_param_values_cmp()</code></a>.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2941676"></a><h3>
<a name="GParamFlags"></a>enum GParamFlags</h3>
<a class="indexterm" name="id2941689"></a><pre class="programlisting">typedef enum
{
  G_PARAM_READABLE            = 1 &lt;&lt; 0,
  G_PARAM_WRITABLE            = 1 &lt;&lt; 1,
  G_PARAM_CONSTRUCT	      = 1 &lt;&lt; 2,
  G_PARAM_CONSTRUCT_ONLY      = 1 &lt;&lt; 3,
  G_PARAM_LAX_VALIDATION      = 1 &lt;&lt; 4,
  G_PARAM_STATIC_NAME	      = 1 &lt;&lt; 5,
#ifndef G_DISABLE_DEPRECATED
  G_PARAM_PRIVATE	      = G_PARAM_STATIC_NAME,
#endif
  G_PARAM_STATIC_NICK	      = 1 &lt;&lt; 6,
  G_PARAM_STATIC_BLURB	      = 1 &lt;&lt; 7
} GParamFlags;
</pre>
<p>
Through the <a class="link" href="gobject-GParamSpec.html#GParamFlags"><span class="type">GParamFlags</span></a> flag values, certain aspects of parameters
can be configured.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a name="G-PARAM-READABLE:CAPS"></a><code class="literal">G_PARAM_READABLE</code></span></p></td>
<td>      the parameter is readable
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-PARAM-WRITABLE:CAPS"></a><code class="literal">G_PARAM_WRITABLE</code></span></p></td>
<td>      the parameter is writable
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-PARAM-CONSTRUCT:CAPS"></a><code class="literal">G_PARAM_CONSTRUCT</code></span></p></td>
<td>     the parameter will be set upon object construction
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-PARAM-CONSTRUCT-ONLY:CAPS"></a><code class="literal">G_PARAM_CONSTRUCT_ONLY</code></span></p></td>
<td>the parameter will only be set upon object construction
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-PARAM-LAX-VALIDATION:CAPS"></a><code class="literal">G_PARAM_LAX_VALIDATION</code></span></p></td>
<td>upon parameter conversion (see <a class="link" href="gobject-GParamSpec.html#g-param-value-convert"><code class="function">g_param_value_convert()</code></a>)
                         strict validation is not required
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-PARAM-STATIC-NAME:CAPS"></a><code class="literal">G_PARAM_STATIC_NAME</code></span></p></td>
<td>   the string used as name when constructing the 
                         parameter is guaranteed to remain valid and
                         unmodified for the lifetime of the parameter. 
                         Since 2.8
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-PARAM-PRIVATE:CAPS"></a><code class="literal">G_PARAM_PRIVATE</code></span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-PARAM-STATIC-NICK:CAPS"></a><code class="literal">G_PARAM_STATIC_NICK</code></span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-PARAM-STATIC-BLURB:CAPS"></a><code class="literal">G_PARAM_STATIC_BLURB</code></span></p></td>
<td>  the string used as blurb when constructing the 
                         parameter is guaranteed to remain valid and 
                         unmodified for the lifetime of the parameter. 
                         Since 2.8

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2941954"></a><h3>
<a name="G-PARAM-READWRITE:CAPS"></a>G_PARAM_READWRITE</h3>
<a class="indexterm" name="id2941968"></a><pre class="programlisting">#define	G_PARAM_READWRITE	(G_PARAM_READABLE | G_PARAM_WRITABLE)
</pre>
<p>
<a class="link" href="gobject-GParamSpec.html#GParamFlags"><span class="type">GParamFlags</span></a> value alias for <a class="link" href="gobject-GParamSpec.html#G-PARAM-READABLE:CAPS"><code class="literal">G_PARAM_READABLE</code></a> | <a class="link" href="gobject-GParamSpec.html#G-PARAM-WRITABLE:CAPS"><code class="literal">G_PARAM_WRITABLE</code></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2942015"></a><h3>
<a name="G-PARAM-STATIC-STRINGS:CAPS"></a>G_PARAM_STATIC_STRINGS</h3>
<a class="indexterm" name="id2942028"></a><pre class="programlisting">#define	G_PARAM_STATIC_STRINGS (G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)
</pre>
<p>
<a class="link" href="gobject-GParamSpec.html#GParamFlags"><span class="type">GParamFlags</span></a> value alias for <a class="link" href="gobject-GParamSpec.html#G-PARAM-STATIC-NAME:CAPS"><code class="literal">G_PARAM_STATIC_NAME</code></a> | <a class="link" href="gobject-GParamSpec.html#G-PARAM-STATIC-NICK:CAPS"><code class="literal">G_PARAM_STATIC_NICK</code></a> | <a class="link" href="gobject-GParamSpec.html#G-PARAM-STATIC-BLURB:CAPS"><code class="literal">G_PARAM_STATIC_BLURB</code></a>.

Since 2.13.0
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2942089"></a><h3>
<a name="G-PARAM-MASK:CAPS"></a>G_PARAM_MASK</h3>
<a class="indexterm" name="id2942102"></a><pre class="programlisting">#define	G_PARAM_MASK		(0x000000ff)
</pre>
<p>
Mask containing the bits of <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>.flags which are reserved for GLib.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2942126"></a><h3>
<a name="G-PARAM-USER-SHIFT:CAPS"></a>G_PARAM_USER_SHIFT</h3>
<a class="indexterm" name="id2942140"></a><pre class="programlisting">#define	G_PARAM_USER_SHIFT	(8)
</pre>
<p>
Minimum shift count to be used for user defined flags, to be stored in
<a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>.flags.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2942164"></a><h3>
<a name="g-param-spec-ref"></a>g_param_spec_ref ()</h3>
<a class="indexterm" name="id2942176"></a><pre class="programlisting"><a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a>*         g_param_spec_ref                    (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec);</pre>
<p>
Increments the reference count of <em class="parameter"><code>pspec</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>  a valid <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> that was passed into this function


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2942256"></a><h3>
<a name="g-param-spec-unref"></a>g_param_spec_unref ()</h3>
<a class="indexterm" name="id2942269"></a><pre class="programlisting">void                g_param_spec_unref                  (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec);</pre>
<p>
Decrements the reference count of a <em class="parameter"><code>pspec</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>a valid <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2942329"></a><h3>
<a name="g-param-spec-sink"></a>g_param_spec_sink ()</h3>
<a class="indexterm" name="id2942343"></a><pre class="programlisting">void                g_param_spec_sink                   (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec);</pre>
<p>
The initial reference count of a newly created <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> is 1, even 
though no one has explicitly called <a class="link" href="gobject-GParamSpec.html#g-param-spec-ref"><code class="function">g_param_spec_ref()</code></a> on it yet. So the 
initial reference count is flagged as "floating", until someone calls 
<code class="literal">g_param_spec_ref (pspec); g_param_spec_sink (pspec);</code>
in sequence on it, taking over the initial reference count (thus
ending up with a <em class="parameter"><code>pspec</code></em> that has a reference count of 1 still, but is
not flagged "floating" anymore).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>a valid <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2942433"></a><h3>
<a name="g-param-spec-ref-sink"></a>g_param_spec_ref_sink ()</h3>
<a class="indexterm" name="id2942449"></a><pre class="programlisting"><a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a>*         g_param_spec_ref_sink               (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec);</pre>
<p>
Convenience function to ref and sink a <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>a valid <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> that was passed into this function
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10


</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2942538"></a><h3>
<a name="g-param-value-set-default"></a>g_param_value_set_default ()</h3>
<a class="indexterm" name="id2942551"></a><pre class="programlisting">void                g_param_value_set_default           (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec,
                                                         <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *value);</pre>
<p>
Sets <em class="parameter"><code>value</code></em> to its default value as specified in <em class="parameter"><code>pspec</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>a valid <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> of correct type for <em class="parameter"><code>pspec</code></em>


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2942653"></a><h3>
<a name="g-param-value-defaults"></a>g_param_value_defaults ()</h3>
<a class="indexterm" name="id2942666"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            g_param_value_defaults              (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec,
                                                         <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *value);</pre>
<p>
Checks whether <em class="parameter"><code>value</code></em> contains the default value as specified in <em class="parameter"><code>pspec</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>  a valid <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></p></td>
<td>  a <a class="link" href="gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> of correct type for <em class="parameter"><code>pspec</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>whether <em class="parameter"><code>value</code></em> contains the canonical default for this <em class="parameter"><code>pspec</code></em>


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2942791"></a><h3>
<a name="g-param-value-validate"></a>g_param_value_validate ()</h3>
<a class="indexterm" name="id2942805"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            g_param_value_validate              (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec,
                                                         <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *value);</pre>
<p>
Ensures that the contents of <em class="parameter"><code>value</code></em> comply with the specifications
set out by <em class="parameter"><code>pspec</code></em>. For example, a <a class="link" href="gobject-Standard-Parameter-and-Value-Types.html#GParamSpecInt"><span class="type">GParamSpecInt</span></a> might require
that integers stored in <em class="parameter"><code>value</code></em> may not be smaller than -42 and not be
greater than +42. If <em class="parameter"><code>value</code></em> contains an integer outside of this range,
it is modified accordingly, so the resulting value will fit into the
range -42 .. +42.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>  a valid <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></p></td>
<td>  a <a class="link" href="gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> of correct type for <em class="parameter"><code>pspec</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>whether modifying <em class="parameter"><code>value</code></em> was necessary to ensure validity


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2942949"></a><h3>
<a name="g-param-value-convert"></a>g_param_value_convert ()</h3>
<a class="indexterm" name="id2942962"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            g_param_value_convert               (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec,
                                                         const <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *src_value,
                                                         <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *dest_value,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> strict_validation);</pre>
<p>
Transforms <em class="parameter"><code>src_value</code></em> into <em class="parameter"><code>dest_value</code></em> if possible, and then validates 
<em class="parameter"><code>dest_value</code></em>, in order for it to conform to <em class="parameter"><code>pspec</code></em>.
If <em class="parameter"><code>strict_validation</code></em> is <a
href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> this function will only succeed if
the transformed <em class="parameter"><code>dest_value</code></em> complied to <em class="parameter"><code>pspec</code></em> without modifications.

See also <a class="link" href="gobject-Generic-values.html#g-value-type-transformable"><code class="function">g_value_type_transformable()</code></a>, <a class="link" href="gobject-Generic-values.html#g-value-transform"><code class="function">g_value_transform()</code></a> and
<a class="link" href="gobject-GParamSpec.html#g-param-value-validate"><code class="function">g_param_value_validate()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>            a valid <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>src_value</code></em>&#160;:</span></p></td>
<td>        souce <a class="link" href="gobject-Generic-values.html#GValue"><span class="type">GValue</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>dest_value</code></em>&#160;:</span></p></td>
<td>       destination <a class="link" href="gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> of correct type for <em class="parameter"><code>pspec</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>strict_validation</code></em>&#160;:</span></p></td>
<td>
<a
href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> requires <em class="parameter"><code>dest_value</code></em> to conform to <em class="parameter"><code>pspec</code></em> without modifications
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>          <a
href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if transformation and validation were successful,
                    <a
href="./../glib/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> otherwise and <em class="parameter"><code>dest_value</code></em> is left untouched.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2943251"></a><h3>
<a name="g-param-values-cmp"></a>g_param_values_cmp ()</h3>
<a class="indexterm" name="id2943264"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#gint"
>gint</a>                g_param_values_cmp                  (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec,
                                                         const <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *value1,
                                                         const <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *value2);</pre>
<p>
Compares <em class="parameter"><code>value1</code></em> with <em class="parameter"><code>value2</code></em> according to <em class="parameter"><code>pspec</code></em>, and return -1, 0 or +1,
if <em class="parameter"><code>value1</code></em> is found to be less than, equal to or greater than <em class="parameter"><code>value2</code></em>, 
respectively.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>  a valid <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value1</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> of correct type for <em class="parameter"><code>pspec</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value2</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> of correct type for <em class="parameter"><code>pspec</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>-1, 0 or +1, for a less than, equal to or greater than result


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2943432"></a><h3>
<a name="g-param-spec-get-name"></a>g_param_spec_get_name ()</h3>
<a class="indexterm" name="id2943445"></a><pre class="programlisting">const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a>*        g_param_spec_get_name               (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec);</pre>
<p>
Returns the name of a <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>a valid <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the name of <em class="parameter"><code>pspec</code></em>.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2943526"></a><h3>
<a name="g-param-spec-get-nick"></a>g_param_spec_get_nick ()</h3>
<a class="indexterm" name="id2943539"></a><pre class="programlisting">const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a>*        g_param_spec_get_nick               (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec);</pre>
<p>
Returns the nickname of a <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>a valid <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the nickname of <em class="parameter"><code>pspec</code></em>.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2943619"></a><h3>
<a name="g-param-spec-get-blurb"></a>g_param_spec_get_blurb ()</h3>
<a class="indexterm" name="id2943632"></a><pre class="programlisting">const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a>*        g_param_spec_get_blurb              (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec);</pre>
<p>
Returns the short description of a <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>a valid <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the short description of <em class="parameter"><code>pspec</code></em>.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2943713"></a><h3>
<a name="g-param-spec-get-qdata"></a>g_param_spec_get_qdata ()</h3>
<a class="indexterm" name="id2943726"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>            g_param_spec_get_qdata              (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> quark);</pre>
<p>
Gets back user data pointers stored via <a class="link" href="gobject-GParamSpec.html#g-param-spec-set-qdata"><code class="function">g_param_spec_set_qdata()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>a valid <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>quark</code></em>&#160;:</span></p></td>
<td>a <a
href="./../glib/glib/glib-Quarks.html#GQuark"
><span class="type">GQuark</span></a>, naming the user data pointer
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the user data pointer set, or <a
href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2943843"></a><h3>
<a name="g-param-spec-set-qdata"></a>g_param_spec_set_qdata ()</h3>
<a class="indexterm" name="id2943856"></a><pre class="programlisting">void                g_param_spec_set_qdata              (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> quark,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);</pre>
<p>
Sets an opaque, named pointer on a <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>. The name is specified 
through a <a
href="./../glib/glib/glib-Quarks.html#GQuark"
><span class="type">GQuark</span></a> (retrieved e.g. via <a
href="./../glib/glib/glib-Quarks.html#g-quark-from-static-string"
><code class="function">g_quark_from_static_string()</code></a>), and 
the pointer can be gotten back from the <em class="parameter"><code>pspec</code></em> with <a class="link" href="gobject-GParamSpec.html#g-param-spec-get-qdata"><code class="function">g_param_spec_get_qdata()</code></a>.
Setting a previously set user data pointer, overrides (frees)
the old pointer set, using <a
href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> as pointer essentially
removes the data stored.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>the <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> to set store a user data pointer
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>quark</code></em>&#160;:</span></p></td>
<td>a <a
href="./../glib/glib/glib-Quarks.html#GQuark"
><span class="type">GQuark</span></a>, naming the user data pointer
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
<td>an opaque user data pointer


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2944021"></a><h3>
<a name="g-param-spec-set-qdata-full"></a>g_param_spec_set_qdata_full ()</h3>
<a class="indexterm" name="id2944035"></a><pre class="programlisting">void                g_param_spec_set_qdata_full         (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> quark,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data,
                                                         <a
href="./../glib/glib/glib-Datasets.html#GDestroyNotify"
>GDestroyNotify</a> destroy);</pre>
<p>
This function works like <a class="link" href="gobject-GParamSpec.html#g-param-spec-set-qdata"><code class="function">g_param_spec_set_qdata()</code></a>, but in addition, 
a <code class="literal">void (*destroy) (gpointer)</code> function may be 
specified which is called with <em class="parameter"><code>data</code></em> as argument when the <em class="parameter"><code>pspec</code></em> is 
finalized, or the data is being overwritten by a call to 
<a class="link" href="gobject-GParamSpec.html#g-param-spec-set-qdata"><code class="function">g_param_spec_set_qdata()</code></a> with the same <em class="parameter"><code>quark</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>  the <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> to set store a user data pointer
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>quark</code></em>&#160;:</span></p></td>
<td>  a <a
href="./../glib/glib/glib-Quarks.html#GQuark"
><span class="type">GQuark</span></a>, naming the user data pointer
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
<td>   an opaque user data pointer
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>destroy</code></em>&#160;:</span></p></td>
<td>function to invoke with <em class="parameter"><code>data</code></em> as argument, when <em class="parameter"><code>data</code></em> needs to
          be freed


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2944226"></a><h3>
<a name="g-param-spec-steal-qdata"></a>g_param_spec_steal_qdata ()</h3>
<a class="indexterm" name="id2944238"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>            g_param_spec_steal_qdata            (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> quark);</pre>
<p>
Gets back user data pointers stored via <a class="link" href="gobject-GParamSpec.html#g-param-spec-set-qdata"><code class="function">g_param_spec_set_qdata()</code></a> and 
removes the <em class="parameter"><code>data</code></em> from <em class="parameter"><code>pspec</code></em> without invoking it's <code class="function">destroy()</code> function 
(if any was set).
Usually, calling this function is only required to update
user data pointers with a destroy notifier.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>the <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> to get a stored user data pointer from
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>quark</code></em>&#160;:</span></p></td>
<td>a <a
href="./../glib/glib/glib-Quarks.html#GQuark"
><span class="type">GQuark</span></a>, naming the user data pointer
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the user data pointer set, or <a
href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2944380"></a><h3>
<a name="g-param-spec-get-redirect-target"></a>g_param_spec_get_redirect_target ()</h3>
<a class="indexterm" name="id2944396"></a><pre class="programlisting"><a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a>*         g_param_spec_get_redirect_target    (<a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec);</pre>
<p>
If the paramspec redirects operations to another paramspec,
returns that paramspec. Redirect is used typically for
providing a new implementation of a property in a derived
type while preserving all the properties from the parent
type. Redirection is established by creating a property
of type <a class="link" href="gobject-Standard-Parameter-and-Value-Types.html#GParamSpecOverride"><span class="type">GParamSpecOverride</span></a>. See <a class="link" href="gobject-The-Base-Object-Type.html#g-object-class-override-property"><code class="function">g_object_class_override_property()</code></a>
for an example of the use of this capability.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>paramspec to which requests on this paramspec should
  be redirected, or <a
href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if none.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4


</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2944504"></a><h3>
<a name="g-param-spec-internal"></a>g_param_spec_internal ()</h3>
<a class="indexterm" name="id2944518"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>            g_param_spec_internal               (<a class="link" href="gobject-Type-Information.html#GType">GType</a> param_type,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *nick,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *blurb,
                                                         <a class="link" href="gobject-GParamSpec.html#GParamFlags">GParamFlags</a> flags);</pre>
<p>
Creates a new <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> instance.
</p>
<p>
A property name consists of segments consisting of ASCII letters and
digits, separated by either the '-' or '_' character. The first
character of a property name must be a letter. Names which violate these
rules lead to undefined behaviour. 
</p>
<p>
When creating and looking up a <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>, either separator can be used, 
but they cannot be mixed. Using '-' is considerably more efficient and in 
fact required when using property names as detail strings for signals.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>param_type</code></em>&#160;:</span></p></td>
<td>the <a class="link" href="gobject-Type-Information.html#GType"><span class="type">GType</span></a> for the property; must be derived from <a class="link" href="gobject-Type-Information.html#G-TYPE-PARAM:CAPS"><span class="type">G_TYPE_PARAM</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
<td>the canonical name of the property
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>nick</code></em>&#160;:</span></p></td>
<td>the nickname of the property
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>blurb</code></em>&#160;:</span></p></td>
<td>a short description of the property
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em>&#160;:</span></p></td>
<td>a combination of <a class="link" href="gobject-GParamSpec.html#GParamFlags"><span class="type">GParamFlags</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>a newly allocated <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> instance


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2944726"></a><h3>
<a name="GParamSpecTypeInfo"></a>GParamSpecTypeInfo</h3>
<a class="indexterm" name="id2944739"></a><pre class="programlisting">typedef struct {
  /* type system portion */
  guint16         instance_size;                               /* obligatory */
  guint16         n_preallocs;                                 /* optional */
  void		(*instance_init)	(GParamSpec   *pspec); /* optional */

  /* class portion */
  GType           value_type;				       /* obligatory */
  void          (*finalize)             (GParamSpec   *pspec); /* optional */
  void          (*value_set_default)    (GParamSpec   *pspec,  /* recommended */
					 GValue       *value);
  gboolean      (*value_validate)       (GParamSpec   *pspec,  /* optional */
					 GValue       *value);
  gint          (*values_cmp)           (GParamSpec   *pspec,  /* recommended */
					 const GValue *value1,
					 const GValue *value2);
} GParamSpecTypeInfo;
</pre>
<p>
This structure is used to provide the type system with the information
required to initialize and destruct (finalize) a parameter's class and
instances thereof.
The initialized structure is passed to the <a class="link" href="gobject-GParamSpec.html#g-param-type-register-static"><code class="function">g_param_type_register_static()</code></a> 
The type system will perform a deep copy of this structure, so it's memory 
does not need to be persistent across invocation of 
<a class="link" href="gobject-GParamSpec.html#g-param-type-register-static"><code class="function">g_param_type_register_static()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a
href="./../glib/glib/glib-Basic-Types.html#guint16"
>guint16</a>&#160;<em class="structfield"><code>instance_size</code></em>;</span></p></td>
<td>Size of the instance (object) structure.
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="./../glib/glib/glib-Basic-Types.html#guint16"
>guint16</a>&#160;<em class="structfield"><code>n_preallocs</code></em>;</span></p></td>
<td>Prior to GLib 2.10, it specified the number of pre-allocated (cached) instances to reserve memory for (0 indicates no caching). Since GLib 2.10, it is ignored, since instances are allocated with the <a
href="./../glib/glib/glib-Memory-Slices.html"
>slice allocator</a> now.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code>instance_init</code></em>&#160;()</span></p></td>
<td>Location of the instance initialization function (optional).
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="gobject-Type-Information.html#GType">GType</a>&#160;<em class="structfield"><code>value_type</code></em>;</span></p></td>
<td>The <a class="link" href="gobject-Type-Information.html#GType"><span class="type">GType</span></a> of values conforming to this <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code>finalize</code></em>&#160;()</span></p></td>
<td>The instance finalization function (optional).
</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code>value_set_default</code></em>&#160;()</span></p></td>
<td>Resets a <em class="parameter"><code>value</code></em> to the default value for <em class="parameter"><code>pspec</code></em> 
  (recommended, the default is <a class="link" href="gobject-Generic-values.html#g-value-reset"><code class="function">g_value_reset()</code></a>), see 
  <a class="link" href="gobject-GParamSpec.html#g-param-value-set-default"><code class="function">g_param_value_set_default()</code></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code>value_validate</code></em>&#160;()</span></p></td>
<td>Ensures that the contents of <em class="parameter"><code>value</code></em> comply with the 
  specifications set out by <em class="parameter"><code>pspec</code></em> (optional), see 
  <code class="function">g_param_value_set_validate()</code>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code>values_cmp</code></em>&#160;()</span></p></td>
<td>Compares <em class="parameter"><code>value1</code></em> with <em class="parameter"><code>value2</code></em> according to <em class="parameter"><code>pspec</code></em> 
  (recommended, the default is <code class="function">memcmp()</code>), see <a class="link" href="gobject-GParamSpec.html#g-param-values-cmp"><code class="function">g_param_values_cmp()</code></a>.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2945056"></a><h3>
<a name="g-param-type-register-static"></a>g_param_type_register_static ()</h3>
<a class="indexterm" name="id2945070"></a><pre class="programlisting"><a class="link" href="gobject-Type-Information.html#GType">GType</a>               g_param_type_register_static        (const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
                                                         const <a class="link" href="gobject-GParamSpec.html#GParamSpecTypeInfo">GParamSpecTypeInfo</a> *pspec_info);</pre>
<p>
Registers <em class="parameter"><code>name</code></em> as the name of a new static type derived from
<a class="link" href="gobject-Type-Information.html#G-TYPE-PARAM:CAPS"><span class="type">G_TYPE_PARAM</span></a>. The type system uses the information contained in the
<a class="link" href="gobject-GParamSpec.html#GParamSpecTypeInfo"><span class="type">GParamSpecTypeInfo</span></a> structure pointed to by <em class="parameter"><code>info</code></em> to manage the <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> 
type and its instances. 
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
<td>0-terminated string used as the name of the new <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> type.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pspec_info</code></em>&#160;:</span></p></td>
<td>The <a class="link" href="gobject-GParamSpec.html#GParamSpecTypeInfo"><span class="type">GParamSpecTypeInfo</span></a> for this <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> type.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>The new type identifier.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2945213"></a><h3>
<a name="GParamSpecPool"></a>GParamSpecPool</h3>
<a class="indexterm" name="id2945226"></a><pre class="programlisting">typedef struct _GParamSpecPool GParamSpecPool;</pre>
<p>
A <a class="link" href="gobject-GParamSpec.html#GParamSpecPool"><span class="type">GParamSpecPool</span></a> maintains a collection of <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>s which can be
quickly accessed by owner and name. The implementation of the <a class="link" href="gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> property
system uses such a pool to store the <span class="type">GParamSpecs</span> of the properties all object
types. 
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2945280"></a><h3>
<a name="g-param-spec-pool-new"></a>g_param_spec_pool_new ()</h3>
<a class="indexterm" name="id2945293"></a><pre class="programlisting"><a class="link" href="gobject-GParamSpec.html#GParamSpecPool">GParamSpecPool</a>*     g_param_spec_pool_new               (<a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> type_prefixing);</pre>
<p>
Creates a new <a class="link" href="gobject-GParamSpec.html#GParamSpecPool"><span class="type">GParamSpecPool</span></a>.
</p>
<p>
If <em class="parameter"><code>type_prefixing</code></em> is <a
href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, lookups in the newly created pool will
allow to specify the owner as a colon-separated prefix of the property name, 
like "GtkContainer:border-width". This feature is deprecated, so you should 
always set <em class="parameter"><code>type_prefixing</code></em> to <a
href="./../glib/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>type_prefixing</code></em>&#160;:</span></p></td>
<td>Whether the pool will support type-prefixed property names.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>a newly allocated <a class="link" href="gobject-GParamSpec.html#GParamSpecPool"><span class="type">GParamSpecPool</span></a>.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2945408"></a><h3>
<a name="g-param-spec-pool-insert"></a>g_param_spec_pool_insert ()</h3>
<a class="indexterm" name="id2945421"></a><pre class="programlisting">void                g_param_spec_pool_insert            (<a class="link" href="gobject-GParamSpec.html#GParamSpecPool">GParamSpecPool</a> *pool,
                                                         <a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> owner_type);</pre>
<p>
Inserts a <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> in the pool.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pool</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-GParamSpec.html#GParamSpecPool"><span class="type">GParamSpecPool</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>the <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> to insert
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>owner_type</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-Type-Information.html#GType"><span class="type">GType</span></a> identifying the owner of <em class="parameter"><code>pspec</code></em>


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2945549"></a><h3>
<a name="g-param-spec-pool-remove"></a>g_param_spec_pool_remove ()</h3>
<a class="indexterm" name="id2945563"></a><pre class="programlisting">void                g_param_spec_pool_remove            (<a class="link" href="gobject-GParamSpec.html#GParamSpecPool">GParamSpecPool</a> *pool,
                                                         <a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a> *pspec);</pre>
<p>
Removes a <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> from the pool.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pool</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-GParamSpec.html#GParamSpecPool"><span class="type">GParamSpecPool</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
<td>the <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> to remove


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2945656"></a><h3>
<a name="g-param-spec-pool-lookup"></a>g_param_spec_pool_lookup ()</h3>
<a class="indexterm" name="id2945669"></a><pre class="programlisting"><a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a>*         g_param_spec_pool_lookup            (<a class="link" href="gobject-GParamSpec.html#GParamSpecPool">GParamSpecPool</a> *pool,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *param_name,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> owner_type,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> walk_ancestors);</pre>
<p>
Looks up a <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> in the pool.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pool</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-GParamSpec.html#GParamSpecPool"><span class="type">GParamSpecPool</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>param_name</code></em>&#160;:</span></p></td>
<td>the name to look for
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>owner_type</code></em>&#160;:</span></p></td>
<td>the owner to look for
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>walk_ancestors</code></em>&#160;:</span></p></td>
<td>If <a
href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, also try to find a <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> with <em class="parameter"><code>param_name</code></em> 
  owned by an ancestor of <em class="parameter"><code>owner_type</code></em>.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>The found <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>, or <a
href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if no matching <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> was found.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2945866"></a><h3>
<a name="g-param-spec-pool-list"></a>g_param_spec_pool_list ()</h3>
<a class="indexterm" name="id2945879"></a><pre class="programlisting"><a class="link" href="gobject-GParamSpec.html#GParamSpec">GParamSpec</a>**        g_param_spec_pool_list              (<a class="link" href="gobject-GParamSpec.html#GParamSpecPool">GParamSpecPool</a> *pool,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> owner_type,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> *n_pspecs_p);</pre>
<p>
Gets an array of all <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>s owned by <em class="parameter"><code>owner_type</code></em> in the pool. 
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pool</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-GParamSpec.html#GParamSpecPool"><span class="type">GParamSpecPool</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>owner_type</code></em>&#160;:</span></p></td>
<td>the owner to look for
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_pspecs_p</code></em>&#160;:</span></p></td>
<td>return location for the length of the returned array
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>a newly allocated array containing pointers to all 
  <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>s owned by <em class="parameter"><code>owner_type</code></em> in the pool


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2946021"></a><h3>
<a name="g-param-spec-pool-list-owned"></a>g_param_spec_pool_list_owned ()</h3>
<a class="indexterm" name="id2946035"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>*              g_param_spec_pool_list_owned        (<a class="link" href="gobject-GParamSpec.html#GParamSpecPool">GParamSpecPool</a> *pool,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> owner_type);</pre>
<p>
Gets an <a
href="./../glib/glib/glib-Doubly-Linked-Lists.html#GList"
><span class="type">GList</span></a> of all <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>s owned by <em class="parameter"><code>owner_type</code></em> in the pool. 
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pool</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-GParamSpec.html#GParamSpecPool"><span class="type">GParamSpecPool</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>owner_type</code></em>&#160;:</span></p></td>
<td>the owner to look for
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>a <a
href="./../glib/glib/glib-Doubly-Linked-Lists.html#GList"
><span class="type">GList</span></a> of all <a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>s owned by <em class="parameter"><code>owner_type</code></em> in 
  the pool<a class="link" href="gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a>s.


</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2946179"></a><h2>See Also</h2>
<p>
<a class="link" href="gobject-The-Base-Object-Type.html#g-object-class-install-property"><code class="function">g_object_class_install_property()</code></a>, <a class="link" href="gobject-The-Base-Object-Type.html#g-object-set"><code class="function">g_object_set()</code></a>, <a class="link" href="gobject-The-Base-Object-Type.html#g-object-get"><code class="function">g_object_get()</code></a>,
<a class="link" href="gobject-The-Base-Object-Type.html#g-object-set-property"><code class="function">g_object_set_property()</code></a>, <a class="link" href="gobject-The-Base-Object-Type.html#g-object-get-property"><code class="function">g_object_get_property()</code></a>, <a class="link" href="gobject-Generic-values.html#g-value-register-transform-func"><code class="function">g_value_register_transform_func()</code></a>
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2946254"></a><div class="refsect2" lang="en"><a name="id2946255"></a></div>
<hr>
<div class="refsect2" lang="en"><a name="id2946256"></a></div>
</div>
</div>
</body>
</html>
